package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_vote")
public class CmsVote extends Model<CmsVote> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 站点ID
     */
	@TableField("site_id")
	private Long siteId;
    /**
     * 开始日期
     */
	@TableField("start_date")
	private Date startDate;
    /**
     * 结束日期
     */
	@TableField("end_date")
	private Date endDate;
    /**
     * 投票间隔小时
     */
	@TableField("interval_hour")
	private Integer intervalHour;
    /**
     * 最大投票数
     */
	@TableField("max_vote")
	private Integer maxVote;
    /**
     * 匿名投票
     */
	private Integer anonymous;
    /**
     * 参与用户数
     */
	@TableField("user_counts")
	private Integer userCounts;
    /**
     * 地址
     */
	private String url;
    /**
     * 标题
     */
	private String title;
    /**
     * 描述
     */
	private String description;
    /**
     * 已禁用
     */
	private Integer disabled;
    /**
     * 扩展ID
     */
	@TableField("item_extend_id")
	private Long itemExtendId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Integer getIntervalHour() {
		return intervalHour;
	}

	public void setIntervalHour(Integer intervalHour) {
		this.intervalHour = intervalHour;
	}

	public Integer getMaxVote() {
		return maxVote;
	}

	public void setMaxVote(Integer maxVote) {
		this.maxVote = maxVote;
	}

	public Integer getAnonymous() {
		return anonymous;
	}

	public void setAnonymous(Integer anonymous) {
		this.anonymous = anonymous;
	}

	public Integer getUserCounts() {
		return userCounts;
	}

	public void setUserCounts(Integer userCounts) {
		this.userCounts = userCounts;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getDisabled() {
		return disabled;
	}

	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}

	public Long getItemExtendId() {
		return itemExtendId;
	}

	public void setItemExtendId(Long itemExtendId) {
		this.itemExtendId = itemExtendId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsVote{" +
			"id=" + id +
			", siteId=" + siteId +
			", startDate=" + startDate +
			", endDate=" + endDate +
			", intervalHour=" + intervalHour +
			", maxVote=" + maxVote +
			", anonymous=" + anonymous +
			", userCounts=" + userCounts +
			", url=" + url +
			", title=" + title +
			", description=" + description +
			", disabled=" + disabled +
			", itemExtendId=" + itemExtendId +
			"}";
	}
}
